// #ifdef MP || H5 
let domain = process.env.VUE_APP_BASE_URL;
// #endif

// #ifdef APP-PLUS
let domain = 'https://dev-manage.julimeng.com/portal'
// #endif


let ENVLIST = ['H5-dev', 'H5-test', 'H5-uat']
import Routine from '@/libs/routine';
module.exports = {
  // 请求域名 格式： https://您的域名
  HTTP_REQUEST_URL: domain,
  APP_ID: "wx0d3a7fd57d2aa930", //圣代企服小程序appid
  MCHID: '1696204071', // 商户ID
  // H5_APP_ID: 'wx3843eed9287d8daa', //助融报告TEST appid
  H5_APP_ID: ENVLIST.includes(process.env.ENV_TYPE) ? 'wx3843eed9287d8daa' : 'wxa597db96950c5e5d',
  // #ifdef H5
  // encodeURIComponent(window.location.href)
  LOCAL_URL: encodeURIComponent(window.location.href),
  // #endif
  H5_BASE_URL: "https://open.weixin.qq.com/connect/oauth2/authorize",
  HEADER: {
    "content-type": "application/json",
  },
  HEADERPARAMS: {
    "content-type": "application/x-www-form-urlencoded",
  },
  // 回话密钥名称 请勿修改此配置
  TOKENNAME: "Authorization",
  // 缓存时间 0 永久
  EXPIRE: 0,
  //分页最多显示条数
  LIMIT: 10,
  WXMENU: [ // 微信分享菜单
    "updateAppMessageShareData",
    "updateTimelineShareData",
    "hideMenuItems",
  ],
  // 接口入参  "来源"
  API_CHANNELTYPE: {
    // #ifdef MP
    channelType: "routine",
    // #endif
    // #ifdef APP-PLUS
    channelType: "app",
    // #endif
    // #ifdef H5
    channelType: Routine.isWeixin ? "wechat" : "h5",
    // #endif
    // #ifdef MP-TOUTIAO
    channelType: "tiktok",
    // #endif
  }
};
